package edu.iscas.xcheck.analysis.info;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="InternalServer")
public class InternalServerConfig {
	private static String host;
	private static String port;
	public static String getHost() {
		return host;
	}
	public static void setHost(String host) {
		InternalServerConfig.host = host;
	}
	public static String getPort() {
		return port;
	}
	public static void setPort(String port) {
		InternalServerConfig.port = port;
	}

	public static String getServerAddr(){
		return "http://"+host+":"+port;
	}
}
